import {luoRequest} from "../utils/request"

// 下载文本文件
export function exportDataText(data){
  return luoRequest({
    url: "/aiAudit/downloadText",
    method: "POST",
    
    data
  })
}

// 下载报告
export function exportDataFile(data){
  return luoRequest({
    url: "/aiAudit/downloadReport",
    method: "POST",
    data
  })
}

/*
** 智能审核
*/

// 文本模式-提交审核
export function textAudit(data){
  return luoRequest({
    url: '/aiAudit/textAudit',
    method: "POST",
    data
  })
}

// 文件模式-提交审核
export function fileAudit(data){
  return luoRequest({
    url: '/aiAudit/fileAudit',
    method: "POST",
    data
  })
}

/*
** 机要审核
*/

// 提交审核
export function confidentAudit(data){
  return luoRequest({
    url: '/cdAudit/fileAudit',
    method: "POST",
    data
  })
}

/*
** 词库设置
*/

// 获取词库信息
export function getThesaurusList(data){
  return luoRequest({
    url: '/lexiconSet/getLexiconInfo',
    method: "POST",
    data
  })
}

// Get获取词库信息
export function getThesaurusListByWx(){
  return luoRequest({
    url: '/lexiconSet/getLexiconInfoByWx',
    method: "GET",
  })
}

// 词库设置
export function setThesaurusList(data){
  return luoRequest({
    url: '/lexiconSet/setLexicon',
    method: "POST",
    data
  })
}

// 词库添加-删除
export function changeThesaurus(data){
  return luoRequest({
    // url: '/lexiconSet/updateLexicon',
    url: '/lexiconSet/updateLexiconByWX',
    method: "POST",
    data
  })
}

// 敏感词-扩充&&删除-输入框模式
export function changeWordsInput(data){
  return luoRequest({
    // url: '/lexiconSet/updateWords',
    url: '/lexiconSet/updateWordsByMP',
    method: "POST",
    data
  })
}

// 敏感词-扩充&&删除-文件模式
export function changeWordsFile(data){
  return luoRequest({
    url: '/lexiconSet/updateWordsFile',
    method: "POST",
    data
  })
}

/*
** 审核设置
*/

// 获取敏感图片类型及是否勾选
export function getPicTypeList(data){
  return luoRequest({
    url: '/auditSet/getPicType',
    method: "POST",
    data
  })
}

// 设置敏感图片类型及是否勾选
export function setPicTypeList(data){
  return luoRequest({
    url: '/auditSet/setPicType',
    method: "POST",
    data
  })
}

// 机要图片添加
export function setUploadPic(data){
  return luoRequest({
    url: '/auditSet/uploadCdPic',
    method: "POST",
    data
  })
}


// 绝密文本添加
export function setUploadCdFile(data){
  return luoRequest({
    url: '/auditSet/uploadCdFile',
    method: "POST",
    data
  })
}

// 获取违规图片扣除分数
export function getPicScore(data){
  return luoRequest({
    url: '/auditSet/getPicScore',
    method: "POST",
    data
  })
}

// 获取敏感文字扣除分数
export function getWordScore(data){
  return luoRequest({
    url: '/auditSet/getWordScore',
    method: "POST",
    data
  })
}

// 设置违规图片扣除分数
export function setPicScore(data){
  return luoRequest({
    url: '/auditSet/setPicScore',
    method: "POST",
    data
  })
}

// 设置敏感文字扣除分数
export function setWordScore(data){
  return luoRequest({
    url: '/auditSet/setWordScore',
    method: "POST",
    data
  })
}
